package day1031.demo04;

/**
 * @program: qy158
 * @description:
 * @author: 闫克起2
 * @create: 2022-10-31 10:49
 **/
public class Test {
    public static void main(String[] args) {
         BankCard bankCard=new BankCard(0);

         Boy boy=new Boy(bankCard);
         Girl girl=new Girl(bankCard);

         Thread t1=new Thread(boy,"王宝强");
         Thread t2=new Thread(girl,"马蓉");

         t1.start();
         t2.start();


    }
}
